Initializes a new instance of the LinearGradientBrush class.
Namespace: MindFusion.Drawing
File: Brush.js
JavaScript Copy Code |
---|
function LinearGradientBrush (startColor, endColor, [angle, [bounds]]) |
The following code creates three linear brushes to be used by an AreaChart:
JavaScript Copy Code |
---|
// create area brushes var firstBrush = new Drawing.Brush("#ce0000"); var secondBrush = new Drawing.LinearGradientBrush("#003466", "#000063"); var thirdBrush = new Drawing.LinearGradientBrush("#e0e9e9", "#669acc"); |